export enum MenuType {
    // title = 'title',
    menu = 'menu',
    group = 'group',
}

export interface Menu {
    name?: string;
    tip?: string;
    path?: string;
    type?: MenuType;
    menus?: Menu[];
}

export const menus: Menu[] = [
    {
        name: '综述',
        type: MenuType.group,
        menus: [
            {
                name: '介绍',
                type: MenuType.menu,
                path: 'home/introduce.entire',
            },
            {
                name: '快速上手',
                type: MenuType.menu,
                path: 'home/setup.entire',
            },
            {
                name: '自定义主题',
                type: MenuType.menu,
                path: 'home/theme/theme',
            },
        ]
    },
    {
        name: '组合函数',
        type: MenuType.group,
        menus: [
            {
                name: '组合式API',
                type: MenuType.menu,
                path: 'components/composition/introduce.entire',
            },
            /*{
                name: '派发事件类型',
                type: MenuType.menu,
                path: 'components/composition/emits.entire',
            },
            {
                name: '插槽类型',
                type: MenuType.menu,
                path: 'components/composition/slots.entire',
            },*/
            {
                name: '继承属性类型',
                type: MenuType.menu,
                path: 'components/composition/inheritPropsType.entire',
            },
            {
                name: '引用与注入类型',
                type: MenuType.menu,
                path: 'components/composition/refs.entire',
            },
            {
                name: '属性双向绑定',
                type: MenuType.menu,
                path: 'components/composition/model.entire',
            },
            /*{
                name: '其他说明',
                type: MenuType.menu,
                path: 'components/composition/other.entire',
            },*/
        ],
    },
    /*{
        name: '常见问题',
        type: MenuType.menu,
        path: 'home/issue.entire.full'
    },*/
    /*{
        name: '类型声明',
        type: MenuType.menu,
        path: 'home/typescript.entire'
    },*/
    /*{
        name: '组合 API',
        type: MenuType.group,
        menus: [
            {name: 'Introduce', tip: '简介', path: 'composition/composition-introduce.entire',},
            {name: 'Basic Usage', tip: '基础用法', path: 'composition/composition-basic-usage.entire',},
            {name: 'Design Component', tip: '组件定义', path: 'composition/composition-design-component.entire',},
            // {name: 'Emit Event', tip: '派发事件', path: 'composition/composition-event.entire',},
            // {name: 'Inherit Attrs', tip: '类型继承', path: 'composition/composition-inherit-attrs.entire',},
            // {name: 'Slots/ScopeSlots', tip: '插槽定义', path: 'composition/composition-slots.entire',},
            {name: 'Provide/Inject', tip: '上下文', path: 'composition/composition-context.entire',},
            {name: 'Lifecycle', tip: '生命周期', path: 'composition/composition-lifecycle.entire',},
            {name: 'Function', tip: '组合函数', path: 'composition/composition-function.entire',},
            // {name: 'FAQ', tip: '常见问题', path: 'composition/composition-faq.entire',},
        ]
    },*/
    {
        name: '基础组件',
        type: MenuType.group,
        menus: [
            {name: 'Icon', tip: '图标', path: 'components/icon',},
            {name: 'Button', tip: '按钮', path: 'components/button',},
            {name: 'Grid', tip: '布局', path: 'components/grid',},
        ]
    },
    {
        name: '表单组件',
        type: MenuType.group,
        menus: [
            {name: 'Input', tip: '文本框', path: 'components/input'},
            {name: 'Radio', tip: '单选按钮', path: 'components/radio'},
            {name: 'Checkbox', tip: '复选框按钮', path: 'components/checkbox',},
            {name: 'Number', tip: '数字输入', path: 'components/number'},
            {name: 'Loading', tip: '加载状态', path: 'components/loading'},

            {name: 'Select', tip: '下拉选择', path: 'components/select'},
            {name: 'Toggle', tip: '开关按钮', path: 'components/toggle'},
            {name: 'Slider', tip: '滑块', path: 'components/slider'},
            {name: 'Tag', tip: '标签', path: 'components/tag'},
            {name: 'Rate', tip: '评分', path: 'components/rate'},
            {name: 'ColorPicker', tip: '颜色选择', path: 'components/color-picker'},

            {name: 'Cascade', tip: '级联选择', path: 'components/cascade'},
            {name: 'Time', tip: '时间选择', path: 'components/time'},
            {name: 'Date', tip: '日期选择', path: 'components/date'},
            {name: 'AutoComplete', tip: '自动补全', path: 'components/auto-complete'},
            {name: 'Upload', tip: '文件上传', path: 'components/upload'},
            {name: 'Image', tip: '图片上传', path: 'components/image'},
        ]
    },
    {
        name: '表单示例',
        type: MenuType.group,
        menus: [
            {name: 'FormBasic', tip: '表单基础', path: 'components/form/basic'},
            {name: 'FormLayout', tip: '多列布局', path: 'components/form/column-layout'},
            {name: 'FormValidate', tip: '表单校验', path: 'components/form/validate'},
            {name: 'FormControl', tip: '禁用控制', path: 'components/form/control'},
            {name: 'FormElement', tip: '表单组件', path: 'components/form/element'},
        ]
    },
    {
        name: '数据视图',
        type: MenuType.group,
        menus: [
            {name: 'List', tip: '列表', path: 'components/view/list'},
            {name: 'VirtualList', tip: '虚拟列表', path: 'components/view/virtual-list'},
            {name: 'Progress', tip: '进度条', path: 'components/view/progress'},
            {name: 'Tree', tip: '树形组件', path: 'components/view/tree'},
            // {name: 'VirtualTree', tip: '虚拟树', path: 'components/view/virtual-tree'},
            {name: 'Pagination', tip: '分页', path: 'components/view/pagination'},
            {name: 'Badge', tip: '标记', path: 'components/view/badge'},
            {name: 'Step', tip: '步骤条', path: 'components/view/step'},
            {name: 'Tab', tip: '页签', path: 'components/view/tab'},
        ]
    },
    /*{
        name: '导航',
        type: MenuType.group,
        menus: [
            {name: 'NavPages', tip: '页面导航', path: 'components/nav/nav-pages'},
            {name: 'NavTab', tip: '页签导航', path: 'components/nav-tab'},
            {name: 'Nav', tip: '应用导航', path: 'components/nav'},
        ],
    },*/
    {
        name: '其他',
        type: MenuType.group,
        menus: [
            {name: 'Scroll', tip: '滚动条', path: 'components/other/scroll'},
            {name: 'Dialog', tip: '对话框', path: 'components/other/dialog'},
            {name: 'Tooltip', tip: '文字提示', path: 'components/other/tooltip'},
            {name: 'Dropdown', tip: '悬浮层', path: 'components/other/dropdown'},
            // {name: 'Popover', tip: '弹出框', path: 'components/other/popover'},
            {name: 'Popper', tip: '悬浮框', path: 'components/other/popper'},
            {name: 'Card', tip: '卡片', path: 'components/other/card'},
            {name: 'Carousel', tip: '轮播', path: 'components/other/carousel'},
            {name: 'Collapse', tip: '折叠面板', path: 'components/other/collapse'},
            {name: 'Alert', tip: '提示信息', path: 'components/other/alert'},
            // {name: 'Portal', tip: '迁移DOM元素', path: 'components/other/portal'},
            // {name: 'Triangle', tip: '三角形元素', path: 'components/other/triangle'},
            // {name: 'FilletCorner', tip: '圆角', path: 'components/other/fillet-corner'},
            // {name: 'TabHeader', tip: '页签头组件', path: 'components/other/tab-header'},
        ]
    },
    {
        name: '服务',
        type: MenuType.group,
        menus: [
            {name: '$message', tip: '消息服务', path: 'components/service/$message'},
            // {name: '$select', tip: '选择服务', path: 'components/service/$message'},
            {name: '$dialog', tip: '对话框服务', path: 'components/service/$dialog'},
            {name: '$notice', tip: '通知', path: 'components/service/$notice'},
            {name: '$file', tip: '文件服务', path: 'components/service/$file'},
        ]
    },
    {
        name: '表格',
        type: MenuType.group,
        menus: [
            {name: 'Virtual', tip: '基础虚拟表格', path: 'components/table/virtual-table'},
            {name: 'Basic', tip: '基础表格', path: 'components/table/table'},
            {name: 'Config', tip: '自定义配置', path: 'components/table/config'},
            {name: 'Fixed', tip: '固定头和列', path: 'components/table/fixed'},
            {name: 'Slot', tip: '列插槽', path: 'components/table/scoped-slot'},
            {name: 'Edit', tip: '行内编辑', path: 'components/table/edit'},
            {name: 'Plc', tip: '列组件', path: 'components/table/plc'},
            {name: 'Expand', tip: '展开列', path: 'components/table/expand'},
            {name: 'Span', tip: '合并单元格', path: 'components/table/span'},
            {name: 'Tree', tip: '树形表格', path: 'components/table/tree'},
            {name: 'RowDraggable', tip: '行拖拽排序', path: 'components/table/row-draggable'},
            {name: 'ColDraggable', tip: '列拖拽排序', path: 'components/table/col-draggable'},
            {name: 'CellStyle', tip: '行列样式', path: 'components/table/class-style'},
        ]
    },
    {
        name: 'PlTablePro',
        type: MenuType.group,
        menus: [
            {name: 'Introduce', tip: '简介', path: 'components/plain-table/introduce'},
            {name: 'Basic', tip: '基础上手', path: 'components/plain-table/basic'},
            {name: 'Plc', tip: '列组件', path: 'components/plain-table/all-plc'},
            {name: 'Group', tip: '分组表头', path: 'components/plain-table/column-group'},
            {name: 'Search', tip: '默认筛选条件', path: 'components/plain-table/default-search'},
            {name: 'FillHeight', tip: '填充高度', path: 'components/plain-table/fill-height'},
            {name: 'Parent', tip: '父子表', path: 'components/plain-table/parent-table'},
            {name: 'Image', tip: '图片列', path: 'components/plain-table/image-list'},
        ]
    },
    /*{
        name: '示例',
        type: MenuType.group,
        menus: [
            {name: '双向绑定', path: 'components/demo/demo'}
        ],
    },*/
]
